import {HTTP} from '../utils/http'

class CaseStudyTestApi extends HTTP {
    /**
     * 查询病例详情
     */
    getCaseDetail(data) {
        return this.request({
            url: 'sp-case/spCaseRead',
            data: data,
            method: 'post'
        })
    }

    /**
     * 查询诊断
     *
     */
    getCaseDiagnose(data) {
        return this.request({
            url: 'sp-diagnose-lib/spDiagnoseLibLike',
            data: data,
            method: 'post'
        })
    }

    /**
     * 查询体格检查
     */
    getCaseBodyCheck(data) {
        return this.request({
            url: 'sp-body-check-tree/getBodyCheckTree',
            data: data,
            method: 'post'
        })
    }
    /**
     * 查询体格检查
     */
    getBodyCheckKeywordLike(data) {
        return this.request({
            url: 'sp-body-check-tree/getBodyCheckKeywordLike',
            data: data,
            method: 'post'
        })
    }

    /**
     * 体格检查查询内容
     */
    getCaseBodyCheckContent(data){
        return this.request({
            url: 'sp-body-check-tree/getBodyCheckContent',
            data: data,
            method: 'post'
        })
    }

    /**
     * 体格检查听诊查询
     * /sp-body-check-tree/getBodyCheckSound
     */
    getBodyCheckSound(data){
        return this.request({
            url: 'sp-body-check-tree/getBodyCheckSound',
            data: data,
            method: 'post'
        })
    }

    /**
     * 查询病史采集
     */
    getCaseQuestion(data) {
        return this.request({
            url: 'sp-case-question/caseQuestionKeywordList',
            data: data,
            method: 'post'
        })
    }

    /**
     * 提交试卷POST /sp-exam-self/saveExamOb
     */
    saveExamObj(data){
        return this.request({
            url: 'sp-exam-self/saveExamObj',
            data: data,
            method: 'post'
        })
    }
}

export default new CaseStudyTestApi()
